//package com.ly.consumer.config.opfegin.factory;
//
//import com.ly.consumer.config.opfegin.RemoteProviderServiceNew;
//import feign.hystrix.FallbackFactory;
//import org.springframework.stereotype.Component;
//
//@Component
//public class RemoteProviderFactory implements FallbackFactory<RemoteProviderServiceNew> {
//    @Override
//    public RemoteProviderServiceNew create(Throwable throwable) {
//        return new RemoteProviderServiceNew(){
//
//            @Override
//            public String providerTest01() {
//                return "服务调用失败";
//            }
//
//            @Override
//            public String providerTest02(String id) {
//                return "服务调用失败";
//            }
//        };
//    }
//}
